<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <form action="{:U('Common/addCommon')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">公司名字</label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$data.name|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">是否默认公司</label>
            <div class="controls">
                <label class="radio">
                    <input type="radio" value="0" name="default" <if condition="$data['default'] eq 0">checked="checked"</if>>否                                   
                </label>
                <label class="radio">
                    <input type="radio" value="1" name="default" <if condition="$data['default'] eq 1">checked="checked"</if>>是
                </label>
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="table" value="wuliu">
            <input type="hidden" name="methods" value="Wuliu">
            <input type="hidden" name="fields" value="name,text;default,text">
            <input type="hidden" name="id" value="{$data.id|default=0}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Wuliu/index')}');
    </script>
</block>
